/***********************************************************************/
/*  This file is part of the ARM Toolchain package                     */
/*  Copyright KEIL ELEKTRONIK GmbH 2003 - 2006                         */
/***********************************************************************/
/*                                                                     */
/*  FlashDev.C:  Device Description for AM29F160DB (16-bit Bus)        */
/*                                                                     */
/***********************************************************************/

#include "FlashOS.H"        // FlashOS Structures

//struct FlashSectors  {
//  unsigned long   szSector;    // Sector Size in Bytes
//  unsigned long AddrSector;    // Address of Sector
//};


struct FlashDevice const FlashDevice  =  {
   FLASH_DRV_VERS,             // Driver Version, do not modify!
   "W25Q128 Flash",         // Device Name
   EXTSPI,                   // Device Type
   EXFLASH_BASE,                   // Device Start Address
   0x1000000,                  // Device Size in Bytes (2MB)
   4096,                       // Programming Page Size
   0,                          // Reserved, must be 0
   0xFF,                       // Initial Content of Erased Memory
   20000,                        // Program Page Timeout 100 mSec
   20000,                       // Erase Sector Timeout 3000 mSec

// Specify Size and Address of Sectors
// Assume all sector has same size
//   0x10000, 0x000000,          // N * Sector Size 64kB (for one block actually)
   0x1000, 0x000000,          // N * Sector Size 4kB
   SECTOR_END
};
